package com.heatingcharge.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.heatingcharge.entity.unit.ResBuilding;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description: heating_charge_server
 * User: Devin
 * Date: 2019-07-19
 * Time: 10:52
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ResBuildingDTO {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /**
     * 楼号
     */
    private String b_num;

    /**
     * 小区Id
     */
    private Integer zoneId;

    /**
     * 换热站ID
     */
    private Integer stationId;

    /**
     * 详细地址
     */
    private String addr;

    /**
     * 经度
     */
    private BigDecimal longitude;

    /**
     * 维度
     */
    private BigDecimal latitude;

    /**
     * 是否删除 0:否 1:是
     */
    protected Integer is_deleted;

    /**
     * 创建人
     */
    public String createdBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    /**
     * 修改人
     */
    private String updatedBy;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedTime;


    @TableField(exist = false)
    private String zoneName;

    @TableField(exist = false)
    private Boolean showUnit=true;

    @TableField(exist = false)
    private Boolean showStatistics=false;
    @TableField(exist = false)
    private Integer heatYearId;
}
